<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'id' => '\d+',
        'name' => '\w+',
    ],

//    '__miss__'  => '@index/index/index',

    //文章详情页
    '[item]'      => [
        ':id' => ['item/index', ['method' => 'get'], ['id' => '\d+']],
    ],
    'item/:id'    => '@index/item/index',

    //文章列表
    '[lists]'     => [
        ':id' => ['lists/index', ['method' => 'get'], ['id' => '\d+']],
    ],
    'lists/:id'   => '@index/lists/index',

    //商品详情
    '[goods]'     => [
        ':id' => ['shopping/item', ['method' => 'get'], ['id' => '\d+']],
    ],
    'goods/:id'   => '@index/shopping/item',

    //店铺
    '[shop]'     => [
        ':id' => ['shop/index', ['method' => 'get'], ['id' => '\d+']],
    ],
    'shop/:id'   => '@index/shop/index',

    'about'    => 'index/about/index',
    'shopping' => 'index/shopping/index',
];
